const {
  defineConfig
} = require('@ufe/pack');
module.exports = defineConfig({
  devServer: {
    proxy: {
      '/api': {
        // target: 'http://139.199.189.40:8080/',
        target: 'http://localhost:8080/',
        ws: true,
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  },
  css: {
    loaderOptions: {
      sass: {
        implementation: require('sass'),
        sassOptions: {
          outputStyle: 'expanded'
        }
      }
    }
  }
})